#include "GameScene.h"
using namespace cocos2d;

GameScene::GameScene(void)
{
	_gameLayer = NULL;
	_gameBGLayer = NULL;
	_gameDebugLayer = NULL;
}

GameScene::~GameScene(void)
{
}

bool GameScene::init()
{
	bool bRet = false;
	do 
	{
		CC_BREAK_IF(! CCScene::init());

		_gameBGLayer = GameBGLayer::create();
		this->addChild(_gameBGLayer, 0);

		_gameLayer = GameLayer::create();
		this->addChild(_gameLayer, 1);

		_gameDebugLayer = GameDebugLayer::create();
		//this->addChild(_gameDebugLayer ,2);


		bRet = true;
	} while (0);
	return bRet;
}
